<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui">

    <composite:interface>
		<composite:attribute name="userBean" 
							 type="com.jsoft.pds.view.beans.authentication.UserSessionBean" 
							 required="true"/>
		<composite:attribute name="credentialsBean" 
							 type="com.jsoft.pds.view.beans.authentication.CredentialsBean" 
							 required="true"/>
    </composite:interface>

    <composite:implementation>
    
		<h:form prependId="false">
		<h:panelGroup styleClass="ui-menubar-custom">
			<p:menubar>
		       	<p:submenu icon="ui-ayuda-image">
		        	<p:menuitem value="#{scrText['screen.dashboard.etiqueta.header.ayudapds']}" styleClass="ui-menubar-custom-item" />
				</p:submenu>
		        <p:submenu icon="ui-username-image">
					<p:menuitem value="#{scrText['screen.dashboard.etiqueta.header.cambiarClave']}" styleClass="ui-menubar-custom-item"
						action="#{cc.attrs.credentialsBean.changePasswordAction(cc.attrs.userBean)}" ajax="false"/>
		        	<p:separator />
		        	<p:menuitem value="#{scrText['screen.dashboard.etiqueta.header.cerrarSesion']}" styleClass="ui-menubar-custom-item" 
		        		action="#{cc.attrs.credentialsBean.logoutAction(cc.attrs.userBean)}" ajax="false" />
		        </p:submenu>
		        <p:menuitem icon="ui-home-image" action="#{cc.attrs.credentialsBean.homeAction(cc.attrs.userBean)}" ajax="false"/>
			</p:menubar>
		</h:panelGroup>
		</h:form>
		
    </composite:implementation>

</html>